<?php
defined('APP') or die('Restricted access');
class Session
{
	function __construct() {
		// Initialize session
		session_id();
		session_start();
		header('Cache-control: private'); // IE 6 FIX
	}
	
	function __destruct() {
		//session_destroy();
	}
	
	function get($name){
		return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
	}
	
	function set($name, $value) {
		$_SESSION[$name] = $value;
	}
}
?>
